<?php
	/**
 	 * Application menus' class
 	 */	
	class Menus
	{
	   /**
	    * global menu (modules)
		*/
    	public static $global = array
		(
			'administration' => array
			(
				'text' => LANG_ADMINISTRATION,
				'url'=>'/users/', 
			),
		);
		
	   /**
	    * contextual menu (2-level)
		*/
		public static $contextual = array
		(		
			'settings' => array
			(
				'module' => 'administration',
				'text' => LANG_SYSTEM,
				'url' => '', 
				'sub' => array
				(
                         'systemsettings' => array
                         (
                              'table_name'=>'t_system_settings',
                              'text' => LANG_SYSTEM_SETTINGS,
                              'url'=>'/systemsettings/'
                         ),

                         'users' => array
						 (
							  'table_name' => 't_users',
							  'text' => LANG_ADMINISTRATORS,
							  'url' => '/users/',
						 ),  
						 
						 'roles' => array
                         (
                              'table_name'=>'t_roles',
                              'text' => LANG_ROLES,
                              'url'=>'/roles/'
                         ),
                         
                         'systemaccesslogs' => array
                         (
                              'table_name'=>'t_system_access_logs',
                              'text' => LANG_LOGGING,
                              'url'=>'/systemaccesslogs/edit/'
                         ),

                         'systemlogs' => array
                         (
                              'table_name'=>'t_system_logs',
                              'text' => LANG_LOGS,
                              'url'=>'/systemlogs/'
                         ),
                         
//                       'systemdelegations' => array
//                       (
//                            'table_name'=>'t_system_delegations',
//                            'text' => LANG_MY_DELEGATIONS,
//                            'url'=>'/systemdelegations/'
//                       ),                       
//                       
//                       'systemupdater' => array
//                       (
//                            'table_name'=>'t_users',
//                            'text' => LANG_SYSTEM_UPDATER,
//                            'url'=>'/systemupdater/',
//                       ),					
				)
			),

			'users' => array
			(
				'module' => 'administration',
				'text' => LANG_USERS,
				'url' => '', 
				'sub' => array
				(

				)
			),
			
			'contentManager' => array
            (
            	'module'=>'administration',
            	'text' => LANG_CONTENT_MANAGEMENT,
            	'url'=>'', 
            	'sub'=>array
                (      
					'menus' => array
				 	(
						'table_name'=>'t_languages',
						'text' => LANG_MENUS,
						'url'=>'/languages/'
					),
					'texts' => array
				 	(
						'table_name'=>'t_languages',
						'text' => LANG_TEXTS,
						'url'=>'/languages/editor/'
					),
//                   	'russian' => array
//                    (
//                        'table_name'=>'t_languages',
//                        'text' => LANG_RUSSIAN,
//                        'url'=>'/app/includes/elements/abitwhizzy/abitwhizzy.php?language=russian'
//                    ),
//                    'english' => array
//                    (
//                        'table_name'=>'t_languages',
//                        'text' => LANG_ENGLISH,
//                        'url'=>'/app/includes/elements/abitwhizzy/abitwhizzy.php?language=english'
//                    ),
            	)
            ),			
			'registers' => array
			(
				'module'=>'administration',
				'text' => LANG_REGISTERS,
				'url'=>'', 
				'sub'=>array
				(

				)
			),	

			'helpers' => array
			(
				'module'=>'guide',
				'text' => LANG_HELPERS,
				'url'=>'', 
				'sub'=>array
				(
					'grid' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_GRIDS,
						'url'=>'/guide/viewGrid/'
					),
					'toolbar' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_TOOLBARS,
						'url'=>'/guide/viewToolbar/'
					),
					
				)
			),
			
			'mvc' => array
			(
				'module'=>'guide',
				'text' => LANG_MVC,
				'url'=>'', 
				'sub'=>array
				(
					'model' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_MODEL,
						'url'=>'/guide/viewModel/'
					),
					
					'controller' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_CONTROLLER,
						'url'=>'/guide/viewController/'
					),
				)
			), 
		);
	
	}
?>